package com.yswl.yeeduo.ui.db;



import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import com.yswl.yeeduo.App;

public class DBManager extends SQLiteOpenHelper {

	private static final String DATABASENAME = "Ca.db";
	private static final int VEISION = 2;
	
	

	/**
	 * 
	 * @param context
	 * @param name
	 * @param factory
	 * @param version
	 */
	public DBManager() {
		super(App.getInstance(), DATABASENAME, null, VEISION);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL(WxUserInfoDao.CREATE_SQL());
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		this.onCreate(db);
	}
}
